package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.domain.Emp;
import com.itheima.pojo.domain.EmpExpr;
import com.itheima.pojo.dto.EmpQueryParamDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmpMapper {

    Page<Emp> list(EmpQueryParamDTO empQueryParamDto);


    List<Emp> listAll();

    Emp listById(Integer id);

    void insertEmp(Emp emp);


    void updateEmpInfo(Emp emp);

    List<EmpExpr> listExprByid(Integer id);

    void deleteEmpInfo(@Param("ids") List<Integer> ids);

    void deleteEmpExperInfo(@Param("ids") List<Integer> ids);
    //登录
    Emp getUsernameAndPassword(Emp emp);
}